package exam.day25;

import java.util.Scanner;

public class Test3 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        char[] ch = in.next().toLowerCase().toCharArray();
        int[] arr = new int[26];
        for(int i = 0; i < ch.length; i++) {
            int a = ch[i] - 'a';
            arr[a]++;
            //
        }
        int maxn = 0;
        int minn = Integer.MAX_VALUE;
        for(int i = 0; i < arr.length; i++) {
            if (arr[i] != 0) {
                maxn = Math.max(maxn, arr[i]);
                minn = Math.min(minn, arr[i]);
            }
        }
        int num = maxn - minn;
        boolean flg = false;
        for(int i = 2; i < num; i++) {
            if(num % i == 0) {
                flg = true;
                break;
            }
        }
        if (num == 0 || num == 1) {
            System.out.println("No Answer");
            System.out.println(num);
        } else {
            if(flg) {
                System.out.println("No Answer");
                System.out.println(num);
            }else {
                System.out.println("Lucky Word");
                System.out.println(num);
            }
        }

    }
}
